
<template>
  <div>
    <MyHead title="我的offer"></MyHead>
    <div class="myoffers">
      <OList :list="list"></OList>
    </div>
    <div class="addbtn">
      <van-button @click="gotopage('/addoffer')" block type="primary"
        >添加offer <van-icon name="add-o"
      /></van-button>
    </div>
  </div>
</template>
  
<script>
import { todoGetOfferList } from "@/api/api";
export default {
  data() {
    return {
      list: [],
    };
  },
  methods: {
    async getMyOfferData() {
      let res = await todoGetOfferList();
      if (res.code == 200) {
        this.list = res.result;
      }
    },
  },
  mounted() {
    this.getMyOfferData();
  },
};
</script>

<style scoped>
.myoffers {
  padding-bottom: 80px;
}
.addbtn {
  width: 100%;
  padding: 15px;
  position: fixed;
  left: 0;
  bottom: 0;
  background: #fff;
  border: none;
}
</style>
